package ua.com.globallogic.training.lections;

public enum Season {
    SUMMER(Wheather.WARM),
    WINTER(Wheather.COLD),
    FALL(Wheather.RAINS){
        @Override
        public  String getWheather() {
            return  super.getWheather() + "and leaves are falling";
        }
    };
    private final Wheather wheather;

    Season(Wheather wheather) {
        this.wheather = wheather;
    }

    public String getWheather() {
        return wheather.name();
    }
}
